package com.lwp.springboot.springbootlog.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("test")
@RestController
@Slf4j
public class TestController extends BaseController{

    @GetMapping("hi")
    public String hi(String name) {
        log.debug("debug");
        log.info("info");
        log.warn("warn");
        log.error("error");

        baseLog.debug("debug");
        baseLog.info("info");
        baseLog.warn("warn");
        baseLog.error("error");
        return "hi " + name;
    }

}
